package com.example.vo.process;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.pojo.Emp;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * 出差申请参数类
 * @author wsl
 */
@Data
@Accessors(chain = true)
public class EvectionVo {

    @ApiModelProperty("流程创建用户编号")
    private String startUserId;

    @ApiModelProperty("天数")
    private Integer num;

    @ApiModelProperty("详情")
    private String description;

    @ApiModelProperty("上级领导人员")
    private String manager;

    @ApiModelProperty("部门经理人员")
    private String gm;

    @ApiModelProperty("财务人员")
    private String finance;

    @ApiModelProperty("出差开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date beginDate;

    @ApiModelProperty("出差结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endDate;

    @ApiModelProperty("流程实例编号")
    @TableField(exist = false)
    private String processInstanceId;

    @ApiModelProperty("当前流程节点")
    @TableField(exist = false)
    private String currentNode;

    @ApiModelProperty("申请日期")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date applicDate;

    @ApiModelProperty("当前处理人")
    @TableField(exist = false)
    private Emp assigneeEmp;

    @ApiModelProperty("是否结束")
    @TableField(exist = false)
    private boolean end;

    @ApiModelProperty("审批结果")
    @TableField(exist = false)
    private boolean approved;

    @ApiModelProperty("任务编号")
    @TableField(exist = false)
    private String taskId;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("流程发起人")
    @TableField(exist = false)
    private Emp startEmp;

//    @ApiModelProperty("当前审批结果")
//    @TableField(exist = false)
//    private boolean approved;
//
//    @ApiModelProperty("回复")
//    @TableField(exist = false)
//    private String reply;

}
